start{
  io.netty.bootstrap.ClientBootstrap.setPipelineFactory
  io.netty.bootstrap.ClientBootstrap.setPipelineFactory
  try {
    io.netty.bootstrap.ServerBootstrap.bind
 catch (  UnknownHostException e) {
}
stop{
  io.netty.bootstrap.ServerBootstrap.releaseExternalResources
  io.netty.channel.Channel.close
  io.netty.bootstrap.ServerBootstrap.releaseExternalResources
}
connect{
  io.netty.bootstrap.ClientBootstrap.connect
    io.netty.channel.ChannelFuture.getChannel
    protocolPeer.setTorrentPeer(peer);
    peer.setProtocolPeer(protocolPeer);
    return true;
    return false;
}
